using System;

namespace Atlantic.XpoAutomaticProperties
{
   /// <summary>
   /// Attribute that allows specification of property's backing field - in case you don't want to use an auto property.
   /// </summary>
   /// <example>
   /// <code>
   /// private string name;
   /// [PropertyBackingField(Name = "name")]
   /// public string Name { get { return name; } set { name = value; } }
   /// </code>
   /// </example>
   [AttributeUsage(AttributeTargets.Property)]
   public class PropertyBackingFieldAttribute : Attribute
   {
      #region Properties

      /// <summary>
      /// The name of the property's backing field.
      /// </summary>
      /// <value>The name.</value>
      public string Name { get; set; }

      #endregion
   }
}